package com.example.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;
@Data
@Schema(description = "站内信信息")
public class Message {
    private Long id;

    @Schema(description = "发帖用户id")
    private Long postUserId;

    @Schema(description = "接收用户id")
    private Long receiveUserId;

    @Schema(description = "发送内容")
    private String content;

    @Schema(description = "状态，0表示正常 1表示已读 2表示回复 默认正常")
    private Byte state;

    private Byte deleteState;

    private Date createTime;

    private Date updateTime;

    //关联用户信息
    private User postUser;

}